.modal-wrap {
  position: fixed;
  top: 0;
  inset-inline-end: 0;
  bottom: 0;
  inset-inline-start: 0;
  overflow: auto;
  outline: 0;
  z-index: 1000;
    inset: 0;
  .modal {
    width:520px;
      transform-origin: 216.2px 327.6px;
    margin: 0 auto;
      padding: 0;
      color: rgba(0,0,0,.88);
      font-size: 14px;
      line-height: 1.5714285714285714;
      list-style: none;
      font-family: -apple-system,BlinkMacSystemFont,segoe ui,Roboto,helvetica neue,Arial,noto sans,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol,noto color emoji;
      pointer-events: none;
      position: relative;
      top: 100px;
      max-width: calc(100vw - 32px);
      padding-bottom: 24px;
      &.modal-centered {
        top: 50%;
        left: 50%;
    display: inline-block;
    padding-bottom: 0;
    text-align: start;
    vertical-align: middle;
    transform: translate(-50%,-50%);
      }
    .modal-content {
    position: relative;
    background-color: #ffffff;
    background-clip: padding-box;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
    pointer-events: auto;
    padding: 20px 24px;
    transform-origin: 186px 160px;
   
    .modal-close {
      position: absolute;
      top: 17px;
      inset-inline-end: 17px; //
      z-index: 1010;
      padding: 0;
      color: rgba(0, 0, 0, 0.45);
      font-weight: 600;
      line-height: 1;
      text-decoration: none;
      background: transparent;
      border-radius: 4px;
      width: 22px;
      height: 22px;
      border: 0;
      outline: 0;
      cursor: pointer;
      transition: color 0.2s, background-color 0.2s;
    }
    .modal-header {
      color: rgba(0, 0, 0, 0.88);
      background: #ffffff;
      border-radius: 8px 8px 0 0;
      margin-bottom: 8px;
      &-title {
        margin: 0;
        color: rgba(0, 0, 0, 0.88);
        font-weight: 600;
        font-size: 16px;
        line-height: 1.5;
        word-wrap: break-word;
        &-icon {
          margin-inline-end: 12px;
        }
      }
    }
    .modal-body {
      font-size: 14px;
      line-height: 1.57;
      word-wrap: break-word;
    }
    .modal-footer {
      text-align: right;
      background: transparent;
      margin-top: 12px;
      button {
        &:last-child {
          margin-inline-start: 8px;
        }
      }
    }
  }
  }
}


.modal-mask {
  position: fixed;
    top: 0;
    inset-inline-end: 0;
    bottom: 0;
    inset-inline-start: 0;
    z-index: 1000;
    height: 100%;
    background-color: rgba(0,0,0,.45);
}
